const { api } = require("./request");
const qs = require("qs");

exports.userlogin = async (datas) => {
  console.log(datas);
  let resdata = await api({
    url: "login/api?from=app&version=5.1.1&platform=android", // 请求地址
    method: "post", // 

    data: qs.stringify(datas), 
 
  });
  return resdata.data;

};
exports.sinapi = async (datas,signdata) => {
  
    let resdata = await api({
      url: `signin_rsa?token=${datas.token}&from=app&version=5.1.1&platform=android&entrance_year=0&graduate_year=0&school_id=${datas.school_id}`, // 请求地址
      method: "post",
     
      data: qs.stringify(signdata), 
   
    });
    return resdata.data;
  
  };